//
//  MyFenDian.m
//  EJLX
//
//  Created by xufei on 15/12/5.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "MyFenDian.h"

@implementation MyFenDian
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self=[super init];
    if (self)
    {
        
        
        _totalPage=[userDic[@"totalPage"]intValue];
        _page=[userDic[@"page"]intValue];
         _pageSize=[userDic[@"pageSize"]intValue];
         _totalAgent=[userDic[@"totalAgent"]intValue];
         _totalVender=[userDic[@"totalVender"]intValue];
        NSMutableArray*listAry=userDic[@"list"];
        _listAry=[NSMutableArray array];
       
        if (listAry.count!=0)
        {
            for (int i=0;i<listAry.count; i++)
            {
                SecondMyFenDian*my=[SecondMyFenDian userWithDictionary:listAry[i]];
                [_listAry addObject:my];
                         }
        }
        
        
    }
    return self;
}

@end
